<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <f:view contentType="text/html">
        <h:head>
            <f:facet name="first">
                <meta content='text/html; charset=UTF-8' http-equiv="Content-Type"/>
                <title>PrimeFaces</title>
            </f:facet>
        </h:head>

        <h:body>
            <h:form enctype="multipart/form-data">  
                <p:growl id="messages" showDetail="true"/>  
                <h:panelGrid columns="2">
                    <p:outputLabel value="PATH:" for="path"/>
                    <p:inputText id="path" value="#{reportUploadController.path}" required="true"/>

                    <p:outputLabel value="WORD:" for="word"/>
                    <p:fileUpload value="#{reportUploadController.file}" id="word"   mode="simple"  required="true"/>  
                </h:panelGrid>
                <p:commandButton ajax="false" value="upload" actionListener="#{reportUploadController.upload}"/>
            </h:form>              
        </h:body>
    </f:view>
    #{reportUploadController.html}
    <c:if test="#{reportUploadController.html != null}">
        
        <ui:include src="#{reportUploadController.html}"/>
    </c:if>
</html>

